package net.xju3_4.service.impl;

import net.xju3_4.common.utils.PageInfo;
import net.xju3_4.dao.UserDao;
import net.xju3_4.entity.UserEntity;
import net.xju3_4.service.AdminUserService;

public class AdminUserServiceImpl implements AdminUserService {
    private UserDao userDao=new UserDao();
    @Override
    public PageInfo<UserEntity> pagelist(Integer pageNo, Integer pageSize, UserEntity user) {
        return userDao.pagelist(pageNo,pageSize,user);
    }

    @Override
    public int forbid(Integer id) {
        return userDao.forbid(id);
    }

    @Override
    public int activate(Integer id) {
        return userDao.activate(id);
    }

    @Override
    public int delete(Integer id) {
        return userDao.delete(id);
    }
}
